<template>
  <div>
    <TopFilter
      :list="chosenSelect"
    ></TopFilter>
  </div>
</template>

<script>
import { dictionary } from '@/utils/dictMixin';

export default {
  mixins: [dictionary],
  data() {
    return{
      chosenSelect: this.createChosenSelect()
    }
  },
  methods: {
    createChosenSelect(){
      return[
        {
          type: 'SELECT',
          label: '出入库类型',
          fieldName: 'type',
          initialValue: 12151001,
          itemList: this.createInAndOutType()
        }
      ]
    },
    createInAndOutType(){
      return [
        {
          text: "采购入库",
          value: 12151001
        },
        {
          text: "调拨入库",
          value: 12151002
        },
        {
          text: "借进登记",
          value: 12151003
        },
        {
          text: "借出归还",
          value: 12151004
        },
        {
          text: "配件报溢",
          value: 12151005
        },
        {
          text: "维修发料",
          value: 12151006
        },
        {
          text: "配件销售",
          value: 12151007
        }
      ]
    }

  }
}
